import request from '@/utils/request'

//服务商账户管理列表
export function getList(query) {
    return request({
        url: 'com.mmk.member.api.AdminUserServerRewardProvider/1.0.0/listUserServerPoints.html',
        method: 'post',
        data: query
    })
}
//服务商账户管理导出
export function excelExport(query) {
    return request({
        url: 'com.mmk.member.api.AdminUserServerRewardProvider/1.0.0/exportServerPoint.html',
        method: 'post',
        data: query,
        responseType: "blob"
    })
}
//服务商账户管理修改奖励详情页
export function RevisionAward(query) {
    return request({
        url: 'com.mmk.member.api.AdminUserServerProvider/1.0.0/getInfoByPhone.html',
        method: 'post',
        data: query,
    })
}
//服务商账户管理修改奖励提交
export function editDetails(query) {
    return request({
        url: 'com.mmk.member.api.AdminUserServerRewardProvider/1.0.0/modifyServerReward.html',
        method: 'post',
        data: query,
    })
}
// //服务商账户管理修改余额详情页
// export function AmendBalance(query) {
//     return request({
//         url: 'com.mmk.member.api.AdminUserProvider/1.0.0/updateAccountIntegral.html',
//         method: 'post',
//         data: query,
//     })
// }
//服务商账户管理修改余额详情页
export function detail(query) {
    return request({
        url: 'com.mmk.member.api.AdminUserServerProvider/1.0.0/getInfoByPhone.html',
        method: 'post',
        data: query
    })
}
//服务商账户管理修改余额提交
export function updateAccountIntegral(query) {
    return request({
        url: 'com.mmk.member.api.AdminUserProvider/1.0.0/updateAccountIntegral.html',
        method: 'post',
        data: query
    })
}
//积分详情
export function selectIntegralDetails(query) {
    return request({
        url: 'com.mmk.member.api.AdminUserServerRewardProvider/1.0.0/selectIntegralDetails.html',
        method: 'post',
        data: query
    })
}
//奖励详情
export function userRewardList(query) {
    return request({
        url: 'com.mmk.member.api.AdminUsersRewardTransProvider/1.0.0/userRewardList.html',
        method: 'post',
        data: query
    })
}
//奖励详情导出
export function exportServer(query) {
    return request({
        url: 'com.mmk.member.api.AdminUserServerRewardProvider/1.0.0/exportServerRewardWithdraw.html',
        method: 'post',
        data: query,
        responseType: "blob"
    })
}
//奖励详情冻结
export function changeIsFreezeStatus(query) {
    return request({
        url: 'com.mmk.member.api.AdminUserServerRewardProvider/1.0.0/changeIsFreezeStatus.html',
        method: 'post',
        data: query,
    })
}
